package com.shijun.bean;

import java.util.List;

/**
 * Created by zhushijun on 2017/12/30 0030.
 */

public class DataBean {
    private String name;
    private String avatar;
    private List<String> imgs;
    private List<UserBean> liskes;
    private List<CommentBean> comments;
    private String content;
    private Boolean isLike;

    public DataBean(String name, String avatar, List<String> imgs,List<UserBean> liskes,List<CommentBean> comments, String content,Boolean isLike) {
        this.name = name;
        this.avatar = avatar;
        this.imgs = imgs;
        this.content = content;
        this.liskes = liskes;
        this.comments = comments;
        this.isLike = isLike;
    }

    public Boolean getLike() {
        return isLike;
    }

    public void setLike(Boolean like) {
        isLike = like;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public List<String> getImgs() {
        return imgs;
    }

    public void setImgs(List<String> imgs) {
        this.imgs = imgs;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<UserBean> getLiskes() {
        return liskes;
    }

    public void setLiskes(List<UserBean> liskes) {
        this.liskes = liskes;
    }

    public List<CommentBean> getComments() {
        return comments;
    }

    public void setComments(List<CommentBean> comments) {
        this.comments = comments;
    }

    @Override
    public String toString() {
        return "DataBean{" +
                "name='" + name + '\'' +
                ", avatar='" + avatar + '\'' +
                ", imgs=" + imgs +
                ", content='" + content + '\'' +
                '}';
    }


    public static class UserBean{
        private String userName;
        private int userId;

        public UserBean(String userName, int userId) {
            this.userName = userName;
            this.userId = userId;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        @Override
        public String toString() {
            return "UserBean{" +
                    "userName='" + userName + '\'' +
                    ", userId='" + userId + '\'' +
                    '}';
        }
    }
}
